<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('部门信息(失效)')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: container-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="gray-bg">
<form id="user-form">
    <div class="ui-layout-center">
        <div class="container-div">
            <div class="row">
                <!-- 公司搜索栏 -->
                <div class="col-sm-12 search-collapse" id="compCondition">
                    <div class="select-list">
                        <ul>

                        </ul>
                    </div>
                </div>


                <!-- 公司表格DIV -->
                <div class="col-sm-12 select-table table-striped">
                    <table id="bootstrap-table" data-mobile-responsive="true"></table>
                </div>

            </div>
        </div>
    </div>
</form>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>
<th:block th:include="include :: datetimepicker-js"/>

<script th:inline="javascript">
    var prefix = ctx + "dep/info";

    $(function () {
        var panehHidden = false;
        if ($(this).width() < 800) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 350});
        queryData();
    });

    //加载公司表格
    function queryData() {
        var columns = [];
        var jobId = {field: 'jobId', title: '岗位编码'};
        var Jobcode = {field: 'Jobcode', title: '岗位代码'};
        var title = {field: 'title', title: '岗位名称'};
        var JobAbbr = {field: 'JobAbbr', title: '岗位简称'};
        var JobGradeTitle = {field: 'JobGradeTitle', title: '岗位级别'};
        var JobTypeTitle = {field: 'JobTypeTitle', title: '岗位类型'};
        var compTitle = {field: 'compTitle', title: '所属公司'};
        var DepIdTitle = {field: 'DepIdTitle', title: '所属部门'};
        var AdminIDTitle = {field: 'AdminIDTitle', title: '上级岗位'};
        var Jobnum = {field: 'Jobnum', title: '编制人数'};
        var jobText = {field: 'jobText', title: '岗位说明'};
        var effectdate = {field: 'effectdate', title: '创建日期'};
        var remark = {field: 'remark', title: '备注'};

        columns.push(jobId,Jobcode,title,JobAbbr,JobGradeTitle,JobTypeTitle,compTitle,DepIdTitle);
        columns.push(AdminIDTitle,Jobnum,jobText,effectdate,remark);


        var options = {
            code: "jobId",
            uniqueId: "jobId",
            url: ctx + "job/admin/jobInfoList?isDisabled=1",
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            sortOrder: "desc",
            modalName: "岗位信息",
            columns: columns
        };
        $.table.init(options);
    }


    //刷新公司表格
    function compRefresh() {
        $("#comp-table").bootstrapTable('refresh');
    }



</script>


</body>
</html>